<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>SDL2_gfx: I:/Sources/sdl2gfx/SDL2_gfxPrimitives.c File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">SDL2_gfx
   &#160;<span id="projectnumber">1.0.1</span>
   </div>
   <div id="projectbrief">GraphicsprimitivesandsurfacefunctionsforSDL2</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">I:/Sources/sdl2gfx/SDL2_gfxPrimitives.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;math.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="_s_d_l2__gfx_primitives_8h_source.html">SDL2_gfxPrimitives.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_s_d_l2__rotozoom_8h_source.html">SDL2_rotozoom.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="_s_d_l2__gfx_primitives__font_8h_source.html">SDL2_gfxPrimitives_font.h</a>&quot;</code><br/>
</div>
<p><a href="_s_d_l2__gfx_primitives_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_s_d_l2__gfx_bresenham_iterator.html">SDL2_gfxBresenhamIterator</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure passed to the internal Bresenham iterator.  <a href="struct_s_d_l2__gfx_bresenham_iterator.html#details">More...</a><br/></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_s_d_l2__gfx_murphy_iterator.html">SDL2_gfxMurphyIterator</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure passed to the internal Murphy iterator.  <a href="struct_s_d_l2__gfx_murphy_iterator.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr class="memitem:a519bc2d4d753c51da1b956d6c200bff1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a519bc2d4d753c51da1b956d6c200bff1">AAlevels</a>&#160;&#160;&#160;256</td></tr>
<tr class="memitem:a2e16571bedf7a97c6fc02d86b48994eb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a2e16571bedf7a97c6fc02d86b48994eb">AAbits</a>&#160;&#160;&#160;8</td></tr>
<tr class="memitem:a764ddb925da0921f024fadb4c12d7382"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a764ddb925da0921f024fadb4c12d7382">HYPOT</a>(x, y)&#160;&#160;&#160;sqrt((double)(x)*(double)(x)+(double)(y)*(double)(y))</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a3ec9c334d5e0786dd27924d210b41bb8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a3ec9c334d5e0786dd27924d210b41bb8">pixel</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y)</td></tr>
<tr class="memdesc:a3ec9c334d5e0786dd27924d210b41bb8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw pixel in currently set color.  <a href="#a3ec9c334d5e0786dd27924d210b41bb8"></a><br/></td></tr>
<tr class="memitem:a345d35905f5aaac6029ddc3c8f016402"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a345d35905f5aaac6029ddc3c8f016402">pixelColor</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Uint32 color)</td></tr>
<tr class="memdesc:a345d35905f5aaac6029ddc3c8f016402"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw pixel with blending enabled if a&lt;255.  <a href="#a345d35905f5aaac6029ddc3c8f016402"></a><br/></td></tr>
<tr class="memitem:ae67cd64db328392941f96c187edafdf3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#ae67cd64db328392941f96c187edafdf3">pixelRGBA</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:ae67cd64db328392941f96c187edafdf3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw pixel with blending enabled if a&lt;255.  <a href="#ae67cd64db328392941f96c187edafdf3"></a><br/></td></tr>
<tr class="memitem:a1f205b54bc806e64c475941e8e7f3cbf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a1f205b54bc806e64c475941e8e7f3cbf">pixelRGBAWeight</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Uint8 r, Uint8 g, Uint8 b, Uint8 a, Uint32 weight)</td></tr>
<tr class="memdesc:a1f205b54bc806e64c475941e8e7f3cbf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw pixel with blending enabled and using alpha weight on color.  <a href="#a1f205b54bc806e64c475941e8e7f3cbf"></a><br/></td></tr>
<tr class="memitem:aa73ac854afaeb66d6a33857aec8335f9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#aa73ac854afaeb66d6a33857aec8335f9">hline</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 x2, Sint16 y)</td></tr>
<tr class="memdesc:aa73ac854afaeb66d6a33857aec8335f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw horizontal line in currently set color.  <a href="#aa73ac854afaeb66d6a33857aec8335f9"></a><br/></td></tr>
<tr class="memitem:a7db92d9e3d357e5a81ae1eee59a6d44a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a7db92d9e3d357e5a81ae1eee59a6d44a">hlineColor</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 x2, Sint16 y, Uint32 color)</td></tr>
<tr class="memdesc:a7db92d9e3d357e5a81ae1eee59a6d44a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw horizontal line with blending.  <a href="#a7db92d9e3d357e5a81ae1eee59a6d44a"></a><br/></td></tr>
<tr class="memitem:a6a0d6ec83f217988a463f65f7c58cabe"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a6a0d6ec83f217988a463f65f7c58cabe">hlineRGBA</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 x2, Sint16 y, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a6a0d6ec83f217988a463f65f7c58cabe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw horizontal line with blending.  <a href="#a6a0d6ec83f217988a463f65f7c58cabe"></a><br/></td></tr>
<tr class="memitem:a743ef67a072a56f575e555feaf1eeb58"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a743ef67a072a56f575e555feaf1eeb58">vlineColor</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y1, Sint16 y2, Uint32 color)</td></tr>
<tr class="memdesc:a743ef67a072a56f575e555feaf1eeb58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw vertical line with blending.  <a href="#a743ef67a072a56f575e555feaf1eeb58"></a><br/></td></tr>
<tr class="memitem:a7a8eff7484a2b663bde190caa02acd27"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a7a8eff7484a2b663bde190caa02acd27">vlineRGBA</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y1, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a7a8eff7484a2b663bde190caa02acd27"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw vertical line with blending.  <a href="#a7a8eff7484a2b663bde190caa02acd27"></a><br/></td></tr>
<tr class="memitem:a746d7d6cbec9dbe69d27ec9087e7bf92"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a746d7d6cbec9dbe69d27ec9087e7bf92">rectangleColor</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color)</td></tr>
<tr class="memdesc:a746d7d6cbec9dbe69d27ec9087e7bf92"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw rectangle with blending.  <a href="#a746d7d6cbec9dbe69d27ec9087e7bf92"></a><br/></td></tr>
<tr class="memitem:a22bb0fffd73e6afbe899db10b13a40cf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a22bb0fffd73e6afbe899db10b13a40cf">rectangleRGBA</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a22bb0fffd73e6afbe899db10b13a40cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw rectangle with blending.  <a href="#a22bb0fffd73e6afbe899db10b13a40cf"></a><br/></td></tr>
<tr class="memitem:aa959f94f887900f4554a0cdff23dad38"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#aa959f94f887900f4554a0cdff23dad38">roundedRectangleColor</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 color)</td></tr>
<tr class="memdesc:aa959f94f887900f4554a0cdff23dad38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw rounded-corner rectangle with blending.  <a href="#aa959f94f887900f4554a0cdff23dad38"></a><br/></td></tr>
<tr class="memitem:a97474c00a6b7b26353b7875e6c70e802"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a97474c00a6b7b26353b7875e6c70e802">roundedRectangleRGBA</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a97474c00a6b7b26353b7875e6c70e802"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw rounded-corner rectangle with blending.  <a href="#a97474c00a6b7b26353b7875e6c70e802"></a><br/></td></tr>
<tr class="memitem:a054bef5fbc340a7bc6a19396e02af7f5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a054bef5fbc340a7bc6a19396e02af7f5">roundedBoxColor</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 color)</td></tr>
<tr class="memdesc:a054bef5fbc340a7bc6a19396e02af7f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw rounded-corner box (filled rectangle) with blending.  <a href="#a054bef5fbc340a7bc6a19396e02af7f5"></a><br/></td></tr>
<tr class="memitem:aa0dcfdfa750ba9fe6b0c207f451d5a68"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#aa0dcfdfa750ba9fe6b0c207f451d5a68">roundedBoxRGBA</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:aa0dcfdfa750ba9fe6b0c207f451d5a68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw rounded-corner box (filled rectangle) with blending.  <a href="#aa0dcfdfa750ba9fe6b0c207f451d5a68"></a><br/></td></tr>
<tr class="memitem:af0cabe8d3a5e7cf4c95f436c4b87284d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#af0cabe8d3a5e7cf4c95f436c4b87284d">boxColor</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color)</td></tr>
<tr class="memdesc:af0cabe8d3a5e7cf4c95f436c4b87284d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw box (filled rectangle) with blending.  <a href="#af0cabe8d3a5e7cf4c95f436c4b87284d"></a><br/></td></tr>
<tr class="memitem:a6c26ea8c03d1092f917665a182b91963"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a6c26ea8c03d1092f917665a182b91963">boxRGBA</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a6c26ea8c03d1092f917665a182b91963"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw box (filled rectangle) with blending.  <a href="#a6c26ea8c03d1092f917665a182b91963"></a><br/></td></tr>
<tr class="memitem:ac8efb30db084f16211f1f1dd648df618"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#ac8efb30db084f16211f1f1dd648df618">line</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2)</td></tr>
<tr class="memdesc:ac8efb30db084f16211f1f1dd648df618"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw line with alpha blending using the currently set color.  <a href="#ac8efb30db084f16211f1f1dd648df618"></a><br/></td></tr>
<tr class="memitem:aa84df90d36a8cb5a5afa61c50ffbfb71"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#aa84df90d36a8cb5a5afa61c50ffbfb71">lineColor</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color)</td></tr>
<tr class="memdesc:aa84df90d36a8cb5a5afa61c50ffbfb71"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw line with alpha blending.  <a href="#aa84df90d36a8cb5a5afa61c50ffbfb71"></a><br/></td></tr>
<tr class="memitem:a82d13b4ab3057ebebb7706e451090712"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a82d13b4ab3057ebebb7706e451090712">lineRGBA</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a82d13b4ab3057ebebb7706e451090712"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw line with alpha blending.  <a href="#a82d13b4ab3057ebebb7706e451090712"></a><br/></td></tr>
<tr class="memitem:ab9e0ea0234edece7549a1606829a4563"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#ab9e0ea0234edece7549a1606829a4563">_aalineRGBA</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a, int draw_endpoint)</td></tr>
<tr class="memdesc:ab9e0ea0234edece7549a1606829a4563"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal function to draw anti-aliased line with alpha blending and endpoint control.  <a href="#ab9e0ea0234edece7549a1606829a4563"></a><br/></td></tr>
<tr class="memitem:a1cf2a63c9f995a7fb380715b14ccd281"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a1cf2a63c9f995a7fb380715b14ccd281">aalineColor</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color)</td></tr>
<tr class="memdesc:a1cf2a63c9f995a7fb380715b14ccd281"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw anti-aliased line with alpha blending.  <a href="#a1cf2a63c9f995a7fb380715b14ccd281"></a><br/></td></tr>
<tr class="memitem:a076261278dad9921ee72411f3f3fbacc"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a076261278dad9921ee72411f3f3fbacc">aalineRGBA</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a076261278dad9921ee72411f3f3fbacc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw anti-aliased line with alpha blending.  <a href="#a076261278dad9921ee72411f3f3fbacc"></a><br/></td></tr>
<tr class="memitem:a52bc17933a4cd0bbf8e8b2bb4d791765"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a52bc17933a4cd0bbf8e8b2bb4d791765">circleColor</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rad, Uint32 color)</td></tr>
<tr class="memdesc:a52bc17933a4cd0bbf8e8b2bb4d791765"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw circle with blending.  <a href="#a52bc17933a4cd0bbf8e8b2bb4d791765"></a><br/></td></tr>
<tr class="memitem:a5c31cfec612a817f2efb01a65001961e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a5c31cfec612a817f2efb01a65001961e">circleRGBA</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a5c31cfec612a817f2efb01a65001961e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw circle with blending.  <a href="#a5c31cfec612a817f2efb01a65001961e"></a><br/></td></tr>
<tr class="memitem:a4b0a963ec00fbf6101ae28834aaacc6e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a4b0a963ec00fbf6101ae28834aaacc6e">arcColor</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end, Uint32 color)</td></tr>
<tr class="memdesc:a4b0a963ec00fbf6101ae28834aaacc6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Arc with blending.  <a href="#a4b0a963ec00fbf6101ae28834aaacc6e"></a><br/></td></tr>
<tr class="memitem:a0445c87dd018fe7f26c0343bb1545cc5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a0445c87dd018fe7f26c0343bb1545cc5">arcRGBA</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a0445c87dd018fe7f26c0343bb1545cc5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Arc with blending.  <a href="#a0445c87dd018fe7f26c0343bb1545cc5"></a><br/></td></tr>
<tr class="memitem:ae36b22e71441985957ab7ec46724f64a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#ae36b22e71441985957ab7ec46724f64a">aacircleColor</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rad, Uint32 color)</td></tr>
<tr class="memdesc:ae36b22e71441985957ab7ec46724f64a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw anti-aliased circle with blending.  <a href="#ae36b22e71441985957ab7ec46724f64a"></a><br/></td></tr>
<tr class="memitem:a77939c678e5948e97d231618893ec4a6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a77939c678e5948e97d231618893ec4a6">aacircleRGBA</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a77939c678e5948e97d231618893ec4a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw anti-aliased circle with blending.  <a href="#a77939c678e5948e97d231618893ec4a6"></a><br/></td></tr>
<tr class="memitem:ac517d328d433a563793f3d51ed4e3080"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#ac517d328d433a563793f3d51ed4e3080">filledCircleColor</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rad, Uint32 color)</td></tr>
<tr class="memdesc:ac517d328d433a563793f3d51ed4e3080"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw filled circle with blending.  <a href="#ac517d328d433a563793f3d51ed4e3080"></a><br/></td></tr>
<tr class="memitem:a84a0671e43b049dd1f43ff5b1b031c21"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a84a0671e43b049dd1f43ff5b1b031c21">filledCircleRGBA</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a84a0671e43b049dd1f43ff5b1b031c21"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw filled circle with blending.  <a href="#a84a0671e43b049dd1f43ff5b1b031c21"></a><br/></td></tr>
<tr class="memitem:a9518a381e2b09c6b4e45109e68ee0b64"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a9518a381e2b09c6b4e45109e68ee0b64">ellipseColor</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint32 color)</td></tr>
<tr class="memdesc:a9518a381e2b09c6b4e45109e68ee0b64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw ellipse with blending.  <a href="#a9518a381e2b09c6b4e45109e68ee0b64"></a><br/></td></tr>
<tr class="memitem:a15eed0329a3aa0642cc0b743262cacb3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a15eed0329a3aa0642cc0b743262cacb3">ellipseRGBA</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a15eed0329a3aa0642cc0b743262cacb3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw ellipse with blending.  <a href="#a15eed0329a3aa0642cc0b743262cacb3"></a><br/></td></tr>
<tr class="memitem:afbbdafd41beaa591c90f5e936d6765a7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#afbbdafd41beaa591c90f5e936d6765a7">aaellipseColor</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint32 color)</td></tr>
<tr class="memdesc:afbbdafd41beaa591c90f5e936d6765a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw anti-aliased ellipse with blending.  <a href="#afbbdafd41beaa591c90f5e936d6765a7"></a><br/></td></tr>
<tr class="memitem:ac5714e2b6a067371ae94ee47b834e36a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#ac5714e2b6a067371ae94ee47b834e36a">aaellipseRGBA</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:ac5714e2b6a067371ae94ee47b834e36a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw anti-aliased ellipse with blending.  <a href="#ac5714e2b6a067371ae94ee47b834e36a"></a><br/></td></tr>
<tr class="memitem:a5477c5b33b56937f6129438a5fb99c70"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a5477c5b33b56937f6129438a5fb99c70">filledEllipseColor</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint32 color)</td></tr>
<tr class="memdesc:a5477c5b33b56937f6129438a5fb99c70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw filled ellipse with blending.  <a href="#a5477c5b33b56937f6129438a5fb99c70"></a><br/></td></tr>
<tr class="memitem:a40aad9eb1dc3000251712c1e16dacd26"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a40aad9eb1dc3000251712c1e16dacd26">filledEllipseRGBA</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a40aad9eb1dc3000251712c1e16dacd26"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw filled ellipse with blending.  <a href="#a40aad9eb1dc3000251712c1e16dacd26"></a><br/></td></tr>
<tr class="memitem:a484ac0e6073f11c999841e5d8a25244e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a484ac0e6073f11c999841e5d8a25244e">_pieRGBA</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end, Uint8 r, Uint8 g, Uint8 b, Uint8 a, Uint8 filled)</td></tr>
<tr class="memdesc:a484ac0e6073f11c999841e5d8a25244e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal float (low-speed) pie-calc implementation by drawing polygons.  <a href="#a484ac0e6073f11c999841e5d8a25244e"></a><br/></td></tr>
<tr class="memitem:a25ffe0578a32b143364d7d9513c3e2a7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a25ffe0578a32b143364d7d9513c3e2a7">pieColor</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end, Uint32 color)</td></tr>
<tr class="memdesc:a25ffe0578a32b143364d7d9513c3e2a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw pie (outline) with alpha blending.  <a href="#a25ffe0578a32b143364d7d9513c3e2a7"></a><br/></td></tr>
<tr class="memitem:ab5dd5024c52d632bbbd2bdfc801cb81c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#ab5dd5024c52d632bbbd2bdfc801cb81c">pieRGBA</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:ab5dd5024c52d632bbbd2bdfc801cb81c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw pie (outline) with alpha blending.  <a href="#ab5dd5024c52d632bbbd2bdfc801cb81c"></a><br/></td></tr>
<tr class="memitem:a8b3489682bc4c791228580c0a118f4b9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a8b3489682bc4c791228580c0a118f4b9">filledPieColor</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end, Uint32 color)</td></tr>
<tr class="memdesc:a8b3489682bc4c791228580c0a118f4b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw filled pie with alpha blending.  <a href="#a8b3489682bc4c791228580c0a118f4b9"></a><br/></td></tr>
<tr class="memitem:aa49fd970108edd50f895b3eed0a5cf59"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#aa49fd970108edd50f895b3eed0a5cf59">filledPieRGBA</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:aa49fd970108edd50f895b3eed0a5cf59"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw filled pie with alpha blending.  <a href="#aa49fd970108edd50f895b3eed0a5cf59"></a><br/></td></tr>
<tr class="memitem:ab6ebeb4e37c2709cd413a308da5bea45"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#ab6ebeb4e37c2709cd413a308da5bea45">trigonColor</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color)</td></tr>
<tr class="memdesc:ab6ebeb4e37c2709cd413a308da5bea45"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw trigon (triangle outline) with alpha blending.  <a href="#ab6ebeb4e37c2709cd413a308da5bea45"></a><br/></td></tr>
<tr class="memitem:aea579ce05e8306113dc7734a542886c4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#aea579ce05e8306113dc7734a542886c4">trigonRGBA</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:aea579ce05e8306113dc7734a542886c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw trigon (triangle outline) with alpha blending.  <a href="#aea579ce05e8306113dc7734a542886c4"></a><br/></td></tr>
<tr class="memitem:a858ecd0d6c3786c6d83dcf273bfcd923"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a858ecd0d6c3786c6d83dcf273bfcd923">aatrigonColor</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color)</td></tr>
<tr class="memdesc:a858ecd0d6c3786c6d83dcf273bfcd923"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw anti-aliased trigon (triangle outline) with alpha blending.  <a href="#a858ecd0d6c3786c6d83dcf273bfcd923"></a><br/></td></tr>
<tr class="memitem:a6f64baf8a15fcb4681560295c1f0915d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a6f64baf8a15fcb4681560295c1f0915d">aatrigonRGBA</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a6f64baf8a15fcb4681560295c1f0915d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw anti-aliased trigon (triangle outline) with alpha blending.  <a href="#a6f64baf8a15fcb4681560295c1f0915d"></a><br/></td></tr>
<tr class="memitem:a79efc6451b00c91cf50e46a29dcde230"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a79efc6451b00c91cf50e46a29dcde230">filledTrigonColor</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color)</td></tr>
<tr class="memdesc:a79efc6451b00c91cf50e46a29dcde230"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw filled trigon (triangle) with alpha blending.  <a href="#a79efc6451b00c91cf50e46a29dcde230"></a><br/></td></tr>
<tr class="memitem:aa828ac3c3fe5ce610c5ad1516dfb6f3f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#aa828ac3c3fe5ce610c5ad1516dfb6f3f">filledTrigonRGBA</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:aa828ac3c3fe5ce610c5ad1516dfb6f3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw filled trigon (triangle) with alpha blending.  <a href="#aa828ac3c3fe5ce610c5ad1516dfb6f3f"></a><br/></td></tr>
<tr class="memitem:a736477a8ea3068bcc3d8d9af4e07420e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a736477a8ea3068bcc3d8d9af4e07420e">polygonColor</a> (SDL_Renderer *renderer, const Sint16 *vx, const Sint16 *vy, int n, Uint32 color)</td></tr>
<tr class="memdesc:a736477a8ea3068bcc3d8d9af4e07420e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw polygon with alpha blending.  <a href="#a736477a8ea3068bcc3d8d9af4e07420e"></a><br/></td></tr>
<tr class="memitem:a635ed8b4c7321f75d00938130edf2007"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a635ed8b4c7321f75d00938130edf2007">polygon</a> (SDL_Renderer *renderer, const Sint16 *vx, const Sint16 *vy, int n)</td></tr>
<tr class="memdesc:a635ed8b4c7321f75d00938130edf2007"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw polygon with the currently set color and blend mode.  <a href="#a635ed8b4c7321f75d00938130edf2007"></a><br/></td></tr>
<tr class="memitem:acf4c333418f95d250528c4106b6ead63"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#acf4c333418f95d250528c4106b6ead63">polygonRGBA</a> (SDL_Renderer *renderer, const Sint16 *vx, const Sint16 *vy, int n, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:acf4c333418f95d250528c4106b6ead63"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw polygon with alpha blending.  <a href="#acf4c333418f95d250528c4106b6ead63"></a><br/></td></tr>
<tr class="memitem:adb4ea9b9394ef35410e1c4e164110f58"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#adb4ea9b9394ef35410e1c4e164110f58">aapolygonColor</a> (SDL_Renderer *renderer, const Sint16 *vx, const Sint16 *vy, int n, Uint32 color)</td></tr>
<tr class="memdesc:adb4ea9b9394ef35410e1c4e164110f58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw anti-aliased polygon with alpha blending.  <a href="#adb4ea9b9394ef35410e1c4e164110f58"></a><br/></td></tr>
<tr class="memitem:a431337e0736927d3bd5a0c53d1d6091a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a431337e0736927d3bd5a0c53d1d6091a">aapolygonRGBA</a> (SDL_Renderer *renderer, const Sint16 *vx, const Sint16 *vy, int n, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a431337e0736927d3bd5a0c53d1d6091a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw anti-aliased polygon with alpha blending.  <a href="#a431337e0736927d3bd5a0c53d1d6091a"></a><br/></td></tr>
<tr class="memitem:aeba347cfe2561fdb7f86d995a941ff1a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#aeba347cfe2561fdb7f86d995a941ff1a">_gfxPrimitivesCompareInt</a> (const void *a, const void *b)</td></tr>
<tr class="memdesc:aeba347cfe2561fdb7f86d995a941ff1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal helper qsort callback functions used in filled polygon drawing.  <a href="#aeba347cfe2561fdb7f86d995a941ff1a"></a><br/></td></tr>
<tr class="memitem:a2bb1f089ab339cf7e4d873aaa677d7d6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a2bb1f089ab339cf7e4d873aaa677d7d6">filledPolygonRGBAMT</a> (SDL_Renderer *renderer, const Sint16 *vx, const Sint16 *vy, int n, Uint8 r, Uint8 g, Uint8 b, Uint8 a, int **polyInts, int *polyAllocated)</td></tr>
<tr class="memdesc:a2bb1f089ab339cf7e4d873aaa677d7d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw filled polygon with alpha blending (multi-threaded capable).  <a href="#a2bb1f089ab339cf7e4d873aaa677d7d6"></a><br/></td></tr>
<tr class="memitem:ab66d826945d8994d9e17ee2745653cac"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#ab66d826945d8994d9e17ee2745653cac">filledPolygonColor</a> (SDL_Renderer *renderer, const Sint16 *vx, const Sint16 *vy, int n, Uint32 color)</td></tr>
<tr class="memdesc:ab66d826945d8994d9e17ee2745653cac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw filled polygon with alpha blending.  <a href="#ab66d826945d8994d9e17ee2745653cac"></a><br/></td></tr>
<tr class="memitem:a31ee2c3d19bd0e9ca5545b81269575a6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a31ee2c3d19bd0e9ca5545b81269575a6">filledPolygonRGBA</a> (SDL_Renderer *renderer, const Sint16 *vx, const Sint16 *vy, int n, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a31ee2c3d19bd0e9ca5545b81269575a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw filled polygon with alpha blending.  <a href="#a31ee2c3d19bd0e9ca5545b81269575a6"></a><br/></td></tr>
<tr class="memitem:a80bfea9271bbcf9e9655858bb58931c6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a80bfea9271bbcf9e9655858bb58931c6">_HLineTextured</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 x2, Sint16 y, SDL_Texture *texture, int texture_w, int texture_h, int texture_dx, int texture_dy)</td></tr>
<tr class="memdesc:a80bfea9271bbcf9e9655858bb58931c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal function to draw a textured horizontal line.  <a href="#a80bfea9271bbcf9e9655858bb58931c6"></a><br/></td></tr>
<tr class="memitem:aa28c0ceafacfeaede97d8ba5597ffe6e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#aa28c0ceafacfeaede97d8ba5597ffe6e">texturedPolygonMT</a> (SDL_Renderer *renderer, const Sint16 *vx, const Sint16 *vy, int n, SDL_Surface *texture, int texture_dx, int texture_dy, int **polyInts, int *polyAllocated)</td></tr>
<tr class="memdesc:aa28c0ceafacfeaede97d8ba5597ffe6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a polygon filled with the given texture (Multi-Threading Capable).  <a href="#aa28c0ceafacfeaede97d8ba5597ffe6e"></a><br/></td></tr>
<tr class="memitem:a2ca947a90a81d4a2b778a7489edbedee"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a2ca947a90a81d4a2b778a7489edbedee">texturedPolygon</a> (SDL_Renderer *renderer, const Sint16 *vx, const Sint16 *vy, int n, SDL_Surface *texture, int texture_dx, int texture_dy)</td></tr>
<tr class="memdesc:a2ca947a90a81d4a2b778a7489edbedee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a polygon filled with the given texture.  <a href="#a2ca947a90a81d4a2b778a7489edbedee"></a><br/></td></tr>
<tr class="memitem:afacd57651ec0e0ccab60753636862cd0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#afacd57651ec0e0ccab60753636862cd0">gfxPrimitivesSetFont</a> (const void *fontdata, Uint32 cw, Uint32 ch)</td></tr>
<tr class="memdesc:afacd57651ec0e0ccab60753636862cd0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or resets the current global font data.  <a href="#afacd57651ec0e0ccab60753636862cd0"></a><br/></td></tr>
<tr class="memitem:aef6796a883f07d31bbf7c7df6d1153d2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#aef6796a883f07d31bbf7c7df6d1153d2">gfxPrimitivesSetFontRotation</a> (Uint32 rotation)</td></tr>
<tr class="memdesc:aef6796a883f07d31bbf7c7df6d1153d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets current global font character rotation steps.  <a href="#aef6796a883f07d31bbf7c7df6d1153d2"></a><br/></td></tr>
<tr class="memitem:aa2edfd8d352bd6483d219ac3c36254f9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#aa2edfd8d352bd6483d219ac3c36254f9">characterRGBA</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, char c, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:aa2edfd8d352bd6483d219ac3c36254f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a character of the currently set font.  <a href="#aa2edfd8d352bd6483d219ac3c36254f9"></a><br/></td></tr>
<tr class="memitem:a9856e3c1366ebd9749809417786a6ed7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a9856e3c1366ebd9749809417786a6ed7">characterColor</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, char c, Uint32 color)</td></tr>
<tr class="memdesc:a9856e3c1366ebd9749809417786a6ed7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a character of the currently set font.  <a href="#a9856e3c1366ebd9749809417786a6ed7"></a><br/></td></tr>
<tr class="memitem:a123f0b72cbdc48e4d47c2942043819a9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a123f0b72cbdc48e4d47c2942043819a9">stringColor</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, const char *s, Uint32 color)</td></tr>
<tr class="memdesc:a123f0b72cbdc48e4d47c2942043819a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a string in the currently set font.  <a href="#a123f0b72cbdc48e4d47c2942043819a9"></a><br/></td></tr>
<tr class="memitem:a22b256fbc6a186b98ec6674c1d781c2f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a22b256fbc6a186b98ec6674c1d781c2f">stringRGBA</a> (SDL_Renderer *renderer, Sint16 x, Sint16 y, const char *s, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a22b256fbc6a186b98ec6674c1d781c2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a string in the currently set font.  <a href="#a22b256fbc6a186b98ec6674c1d781c2f"></a><br/></td></tr>
<tr class="memitem:a888411ec724ddb9ff19cf9ba9fc067df"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a888411ec724ddb9ff19cf9ba9fc067df">_evaluateBezier</a> (double *data, int ndata, double t)</td></tr>
<tr class="memdesc:a888411ec724ddb9ff19cf9ba9fc067df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal function to calculate bezier interpolator of data array with ndata values at position 't'.  <a href="#a888411ec724ddb9ff19cf9ba9fc067df"></a><br/></td></tr>
<tr class="memitem:a23bbdcb064bb80db48d4863871b60f3c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a23bbdcb064bb80db48d4863871b60f3c">bezierColor</a> (SDL_Renderer *renderer, const Sint16 *vx, const Sint16 *vy, int n, int s, Uint32 color)</td></tr>
<tr class="memdesc:a23bbdcb064bb80db48d4863871b60f3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a bezier curve with alpha blending.  <a href="#a23bbdcb064bb80db48d4863871b60f3c"></a><br/></td></tr>
<tr class="memitem:aee708db5f0144ebf4a2fd13db69c6bb1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#aee708db5f0144ebf4a2fd13db69c6bb1">bezierRGBA</a> (SDL_Renderer *renderer, const Sint16 *vx, const Sint16 *vy, int n, int s, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:aee708db5f0144ebf4a2fd13db69c6bb1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a bezier curve with alpha blending.  <a href="#aee708db5f0144ebf4a2fd13db69c6bb1"></a><br/></td></tr>
<tr class="memitem:af2731f17a2e4d7d765e47392bdba7d7e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#af2731f17a2e4d7d765e47392bdba7d7e">_bresenhamInitialize</a> (<a class="el" href="struct_s_d_l2__gfx_bresenham_iterator.html">SDL2_gfxBresenhamIterator</a> *b, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2)</td></tr>
<tr class="memdesc:af2731f17a2e4d7d765e47392bdba7d7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal function to initialize the Bresenham line iterator.  <a href="#af2731f17a2e4d7d765e47392bdba7d7e"></a><br/></td></tr>
<tr class="memitem:ad052c2880dd90acc6846dc050e0acaab"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#ad052c2880dd90acc6846dc050e0acaab">_bresenhamIterate</a> (<a class="el" href="struct_s_d_l2__gfx_bresenham_iterator.html">SDL2_gfxBresenhamIterator</a> *b)</td></tr>
<tr class="memdesc:ad052c2880dd90acc6846dc050e0acaab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal function to move Bresenham line iterator to the next position.  <a href="#ad052c2880dd90acc6846dc050e0acaab"></a><br/></td></tr>
<tr class="memitem:a4aaefb01b776e3b567b8325c701fd507"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a4aaefb01b776e3b567b8325c701fd507">_murphyParaline</a> (<a class="el" href="struct_s_d_l2__gfx_murphy_iterator.html">SDL2_gfxMurphyIterator</a> *m, Sint16 x, Sint16 y, int d1)</td></tr>
<tr class="memdesc:a4aaefb01b776e3b567b8325c701fd507"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal function to to draw parallel lines with Murphy algorithm.  <a href="#a4aaefb01b776e3b567b8325c701fd507"></a><br/></td></tr>
<tr class="memitem:a46be62225b445b75ee0a581f6c26fe44"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a46be62225b445b75ee0a581f6c26fe44">_murphyIteration</a> (<a class="el" href="struct_s_d_l2__gfx_murphy_iterator.html">SDL2_gfxMurphyIterator</a> *m, Uint8 miter, Uint16 ml1bx, Uint16 ml1by, Uint16 ml2bx, Uint16 ml2by, Uint16 ml1x, Uint16 ml1y, Uint16 ml2x, Uint16 ml2y)</td></tr>
<tr class="memdesc:a46be62225b445b75ee0a581f6c26fe44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal function to to draw one iteration of the Murphy algorithm.  <a href="#a46be62225b445b75ee0a581f6c26fe44"></a><br/></td></tr>
<tr class="memitem:abc1df7ada979012cef99920e741cf559"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#abc1df7ada979012cef99920e741cf559">_murphyWideline</a> (<a class="el" href="struct_s_d_l2__gfx_murphy_iterator.html">SDL2_gfxMurphyIterator</a> *m, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 width, Uint8 miter)</td></tr>
<tr class="memdesc:abc1df7ada979012cef99920e741cf559"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal function to to draw wide lines with Murphy algorithm.  <a href="#abc1df7ada979012cef99920e741cf559"></a><br/></td></tr>
<tr class="memitem:a65c3119156482e660d4f4a3e084eb2ab"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a65c3119156482e660d4f4a3e084eb2ab">thickLineColor</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 width, Uint32 color)</td></tr>
<tr class="memdesc:a65c3119156482e660d4f4a3e084eb2ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a thick line with alpha blending.  <a href="#a65c3119156482e660d4f4a3e084eb2ab"></a><br/></td></tr>
<tr class="memitem:a20297b17afd1e3686589bf74ebd17482"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_d_l2__gfx_primitives_8c.html#a20297b17afd1e3686589bf74ebd17482">thickLineRGBA</a> (SDL_Renderer *renderer, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint8 width, Uint8 r, Uint8 g, Uint8 b, Uint8 a)</td></tr>
<tr class="memdesc:a20297b17afd1e3686589bf74ebd17482"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a thick line with alpha blending.  <a href="#a20297b17afd1e3686589bf74ebd17482"></a><br/></td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="a2e16571bedf7a97c6fc02d86b48994eb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="_s_d_l2__gfx_primitives_8c.html#a2e16571bedf7a97c6fc02d86b48994eb">AAbits</a>&#160;&#160;&#160;8</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00842">842</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a519bc2d4d753c51da1b956d6c200bff1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="_s_d_l2__gfx_primitives_8c.html#a519bc2d4d753c51da1b956d6c200bff1">AAlevels</a>&#160;&#160;&#160;256</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00841">841</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a764ddb925da0921f024fadb4c12d7382"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define <a class="el" href="_s_d_l2__gfx_primitives_8c.html#a764ddb925da0921f024fadb4c12d7382">HYPOT</a></td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">y&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;sqrt((double)(x)*(double)(x)+(double)(y)*(double)(y))</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l04099">4099</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ab9e0ea0234edece7549a1606829a4563"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8c.html#ab9e0ea0234edece7549a1606829a4563">_aalineRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>draw_endpoint</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Internal function to draw anti-aliased line with alpha blending and endpoint control. </p>
<p>This implementation of the Wu antialiasing code is based on Mike Abrash's DDJ article which was reprinted as Chapter 42 of his Graphics Programming Black Book, but has been optimized to work with SDL and utilizes 32-bit fixed-point arithmetic by A. Schiffler. The endpoint control allows the supression to draw the last pixel useful for rendering continous aa-lines with alpha&lt;255.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the aa-line. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the aa-line. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the aa-line. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point of the aa-line. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the aa-line to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the aa-line to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the aa-line to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the aa-line to draw. </td></tr>
    <tr><td class="paramname">draw_endpoint</td><td>Flag indicating if the endpoint should be drawn; draw if non-zero.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00867">867</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="af2731f17a2e4d7d765e47392bdba7d7e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8c.html#af2731f17a2e4d7d765e47392bdba7d7e">_bresenhamInitialize</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_s_d_l2__gfx_bresenham_iterator.html">SDL2_gfxBresenhamIterator</a> *&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Internal function to initialize the Bresenham line iterator. </p>
<p>Example of use: <a class="el" href="struct_s_d_l2__gfx_bresenham_iterator.html" title="The structure passed to the internal Bresenham iterator.">SDL2_gfxBresenhamIterator</a> b; _bresenhamInitialize (&amp;b, x1, y1, x2, y2); do { plot(b.x, b.y); } while (_bresenhamIterate(&amp;b)==0);</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>Pointer to struct for bresenham line drawing state. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the line. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the line. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the line. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point of the line.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03837">3837</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="ad052c2880dd90acc6846dc050e0acaab"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8c.html#ad052c2880dd90acc6846dc050e0acaab">_bresenhamIterate</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_s_d_l2__gfx_bresenham_iterator.html">SDL2_gfxBresenhamIterator</a> *&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Internal function to move Bresenham line iterator to the next position. </p>
<p>Maybe updates the x and y coordinates of the iterator struct.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>Pointer to struct for bresenham line drawing state.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, 1 if last point was reached, 2 if moving past end-of-line, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03899">3899</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a888411ec724ddb9ff19cf9ba9fc067df"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double <a class="el" href="_s_d_l2__gfx_primitives_8c.html#a888411ec724ddb9ff19cf9ba9fc067df">_evaluateBezier</a> </td>
          <td>(</td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ndata</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>t</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Internal function to calculate bezier interpolator of data array with ndata values at position 't'. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>Array of values. </td></tr>
    <tr><td class="paramname">ndata</td><td>Size of array. </td></tr>
    <tr><td class="paramname">t</td><td>Position for which to calculate interpolated value. t should be between [0, ndata].</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Interpolated value at position t, value[0] when t&lt;0, value[n-1] when t&gt;n. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03670">3670</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="aeba347cfe2561fdb7f86d995a941ff1a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8c.html#aeba347cfe2561fdb7f86d995a941ff1a">_gfxPrimitivesCompareInt</a> </td>
          <td>(</td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Internal helper qsort callback functions used in filled polygon drawing. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>The surface to draw on. </td></tr>
    <tr><td class="paramname">b</td><td>Vertex array containing X coordinates of the points of the polygon.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 if a==b, a negative number if a&lt;b or a positive number if a&gt;b. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02794">2794</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a80bfea9271bbcf9e9655858bb58931c6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8c.html#a80bfea9271bbcf9e9655858bb58931c6">_HLineTextured</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SDL_Texture *&#160;</td>
          <td class="paramname"><em>texture</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>texture_w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>texture_h</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>texture_dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>texture_dy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Internal function to draw a textured horizontal line. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point (i.e. left) of the line. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point (i.e. right) of the line. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the points of the line. </td></tr>
    <tr><td class="paramname">texture</td><td>The texture to retrieve color information from. </td></tr>
    <tr><td class="paramname">texture_w</td><td>The width of the texture. </td></tr>
    <tr><td class="paramname">texture_h</td><td>The height of the texture. </td></tr>
    <tr><td class="paramname">texture_dx</td><td>The X offset for the texture lookup. </td></tr>
    <tr><td class="paramname">texture_dy</td><td>The Y offset for the textured lookup.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03041">3041</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a46be62225b445b75ee0a581f6c26fe44"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_s_d_l2__gfx_primitives_8c.html#a46be62225b445b75ee0a581f6c26fe44">_murphyIteration</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_s_d_l2__gfx_murphy_iterator.html">SDL2_gfxMurphyIterator</a> *&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>miter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint16&#160;</td>
          <td class="paramname"><em>ml1bx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint16&#160;</td>
          <td class="paramname"><em>ml1by</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint16&#160;</td>
          <td class="paramname"><em>ml2bx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint16&#160;</td>
          <td class="paramname"><em>ml2by</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint16&#160;</td>
          <td class="paramname"><em>ml1x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint16&#160;</td>
          <td class="paramname"><em>ml1y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint16&#160;</td>
          <td class="paramname"><em>ml2x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint16&#160;</td>
          <td class="paramname"><em>ml2y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Internal function to to draw one iteration of the Murphy algorithm. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>Pointer to struct for murphy iterator. </td></tr>
    <tr><td class="paramname">miter</td><td>Iteration count. </td></tr>
    <tr><td class="paramname">ml1bx</td><td>X coordinate of a point. </td></tr>
    <tr><td class="paramname">ml1by</td><td>Y coordinate of a point. </td></tr>
    <tr><td class="paramname">ml2bx</td><td>X coordinate of a point. </td></tr>
    <tr><td class="paramname">ml2by</td><td>Y coordinate of a point. </td></tr>
    <tr><td class="paramname">ml1x</td><td>X coordinate of a point. </td></tr>
    <tr><td class="paramname">ml1y</td><td>Y coordinate of a point. </td></tr>
    <tr><td class="paramname">ml2x</td><td>X coordinate of a point. </td></tr>
    <tr><td class="paramname">ml2y</td><td>Y coordinate of a point. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03992">3992</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a4aaefb01b776e3b567b8325c701fd507"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_s_d_l2__gfx_primitives_8c.html#a4aaefb01b776e3b567b8325c701fd507">_murphyParaline</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_s_d_l2__gfx_murphy_iterator.html">SDL2_gfxMurphyIterator</a> *&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>d1</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Internal function to to draw parallel lines with Murphy algorithm. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>Pointer to struct for murphy iterator. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of point. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of point. </td></tr>
    <tr><td class="paramname">d1</td><td>Direction square/diagonal. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03942">3942</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="abc1df7ada979012cef99920e741cf559"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_s_d_l2__gfx_primitives_8c.html#abc1df7ada979012cef99920e741cf559">_murphyWideline</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_s_d_l2__gfx_murphy_iterator.html">SDL2_gfxMurphyIterator</a> *&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>miter</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Internal function to to draw wide lines with Murphy algorithm. </p>
<p>Draws lines parallel to ideal line.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>Pointer to struct for murphy iterator. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of first point. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of first point. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of second point. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of second point. </td></tr>
    <tr><td class="paramname">width</td><td>Width of line. </td></tr>
    <tr><td class="paramname">miter</td><td>Iteration count. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l04115">4115</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a484ac0e6073f11c999841e5d8a25244e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8c.html#a484ac0e6073f11c999841e5d8a25244e">_pieRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>filled</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Internal float (low-speed) pie-calc implementation by drawing polygons. </p>
<p>Note: Determines vertex array and uses polygon or filledPolygon drawing routines to render.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the pie. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the pie. </td></tr>
    <tr><td class="paramname">rad</td><td>Radius in pixels of the pie. </td></tr>
    <tr><td class="paramname">start</td><td>Starting radius in degrees of the pie. </td></tr>
    <tr><td class="paramname">end</td><td>Ending radius in degrees of the pie. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the pie to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the pie to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the pie to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the pie to draw. </td></tr>
    <tr><td class="paramname">filled</td><td>Flag indicating if the pie should be filled (=1) or not (=0).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02175">2175</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="ae36b22e71441985957ab7ec46724f64a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a46b037505b91133ae3bd18556092a632">aacircleColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw anti-aliased circle with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the aa-circle. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the aa-circle. </td></tr>
    <tr><td class="paramname">rad</td><td>Radius in pixels of the aa-circle. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the aa-circle to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l01416">1416</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a77939c678e5948e97d231618893ec4a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#aa0b0f764826715353e9ca0fe937d0f0f">aacircleRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw anti-aliased circle with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the aa-circle. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the aa-circle. </td></tr>
    <tr><td class="paramname">rad</td><td>Radius in pixels of the aa-circle. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the aa-circle to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the aa-circle to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the aa-circle to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the aa-circle to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l01436">1436</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="afbbdafd41beaa591c90f5e936d6765a7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#af676a520e9ea0deabe711da842bc1e55">aaellipseColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>ry</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw anti-aliased ellipse with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the aa-ellipse. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the aa-ellipse. </td></tr>
    <tr><td class="paramname">rx</td><td>Horizontal radius in pixels of the aa-ellipse. </td></tr>
    <tr><td class="paramname">ry</td><td>Vertical radius in pixels of the aa-ellipse. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the aa-ellipse to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l01793">1793</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="ac5714e2b6a067371ae94ee47b834e36a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a12e9ff795a5b9996f07f5b0bc4f60f81">aaellipseRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>ry</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw anti-aliased ellipse with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the aa-ellipse. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the aa-ellipse. </td></tr>
    <tr><td class="paramname">rx</td><td>Horizontal radius in pixels of the aa-ellipse. </td></tr>
    <tr><td class="paramname">ry</td><td>Vertical radius in pixels of the aa-ellipse. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the aa-ellipse to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the aa-ellipse to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the aa-ellipse to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the aa-ellipse to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l01814">1814</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a1cf2a63c9f995a7fb380715b14ccd281"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a86ab777f53655a509a3ac3c008941920">aalineColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw anti-aliased line with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the aa-line. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the aa-line. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the aa-line. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point of the aa-line. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the aa-line to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l01081">1081</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a076261278dad9921ee72411f3f3fbacc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#ad7074bc1af414cea003712621b1c7d86">aalineRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw anti-aliased line with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the aa-line. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the aa-line. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the aa-line. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point of the aa-line. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the aa-line to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the aa-line to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the aa-line to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the aa-line to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l01102">1102</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="adb4ea9b9394ef35410e1c4e164110f58"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a54c28d1e469b52483e952258c2f6f69b">aapolygonColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw anti-aliased polygon with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">vx</td><td>Vertex array containing X coordinates of the points of the aa-polygon. </td></tr>
    <tr><td class="paramname">vy</td><td>Vertex array containing Y coordinates of the points of the aa-polygon. </td></tr>
    <tr><td class="paramname">n</td><td>Number of points in the vertex array. Minimum number is 3. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the aa-polygon to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02716">2716</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a431337e0736927d3bd5a0c53d1d6091a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a6a18d7838305c636b8462e0ba587d859">aapolygonRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw anti-aliased polygon with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">vx</td><td>Vertex array containing X coordinates of the points of the aa-polygon. </td></tr>
    <tr><td class="paramname">vy</td><td>Vertex array containing Y coordinates of the points of the aa-polygon. </td></tr>
    <tr><td class="paramname">n</td><td>Number of points in the vertex array. Minimum number is 3. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the aa-polygon to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the aa-polygon to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the aa-polygon to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the aa-polygon to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02736">2736</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a858ecd0d6c3786c6d83dcf273bfcd923"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a75bc7cc80beb53452c135e8c1a75d1c5">aatrigonColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw anti-aliased trigon (triangle outline) with alpha blending. </p>
<p>Note: Creates vertex array and uses aapolygon routine to render.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the aa-trigon. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the aa-trigon. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the aa-trigon. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point of the aa-trigon. </td></tr>
    <tr><td class="paramname">x3</td><td>X coordinate of the third point of the aa-trigon. </td></tr>
    <tr><td class="paramname">y3</td><td>Y coordinate of the third point of the aa-trigon. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the aa-trigon to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02444">2444</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a6f64baf8a15fcb4681560295c1f0915d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#aa7fddcf1aa339a825024544fb774aa8f">aatrigonRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw anti-aliased trigon (triangle outline) with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the aa-trigon. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the aa-trigon. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the aa-trigon. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point of the aa-trigon. </td></tr>
    <tr><td class="paramname">x3</td><td>X coordinate of the third point of the aa-trigon. </td></tr>
    <tr><td class="paramname">y3</td><td>Y coordinate of the third point of the aa-trigon. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the aa-trigon to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the aa-trigon to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the aa-trigon to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the aa-trigon to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02476">2476</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a4b0a963ec00fbf6101ae28834aaacc6e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a493fe37b39da582668431ab7e1e3dbf0">arcColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Arc with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the arc. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the arc. </td></tr>
    <tr><td class="paramname">rad</td><td>Radius in pixels of the arc. </td></tr>
    <tr><td class="paramname">start</td><td>Starting radius in degrees of the arc. 0 degrees is down, increasing counterclockwise. </td></tr>
    <tr><td class="paramname">end</td><td>Ending radius in degrees of the arc. 0 degrees is down, increasing counterclockwise. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the arc to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l01160">1160</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a0445c87dd018fe7f26c0343bb1545cc5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#acf0091a17501f375f2b55032134b3017">arcRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Arc with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the arc. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the arc. </td></tr>
    <tr><td class="paramname">rad</td><td>Radius in pixels of the arc. </td></tr>
    <tr><td class="paramname">start</td><td>Starting radius in degrees of the arc. 0 degrees is down, increasing counterclockwise. </td></tr>
    <tr><td class="paramname">end</td><td>Ending radius in degrees of the arc. 0 degrees is down, increasing counterclockwise. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the arc to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the arc to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the arc to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the arc to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l01183">1183</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a23bbdcb064bb80db48d4863871b60f3c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a74d59d17ba21ce5d8c84697989456bfb">bezierColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw a bezier curve with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">vx</td><td>Vertex array containing X coordinates of the points of the bezier curve. </td></tr>
    <tr><td class="paramname">vy</td><td>Vertex array containing Y coordinates of the points of the bezier curve. </td></tr>
    <tr><td class="paramname">n</td><td>Number of points in the vertex array. Minimum number is 3. </td></tr>
    <tr><td class="paramname">s</td><td>Number of steps for the interpolation. Minimum number is 2. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the bezier curve to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03729">3729</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="aee708db5f0144ebf4a2fd13db69c6bb1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a6cb082e6eb4253d591927c6bf7eba06f">bezierRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw a bezier curve with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">vx</td><td>Vertex array containing X coordinates of the points of the bezier curve. </td></tr>
    <tr><td class="paramname">vy</td><td>Vertex array containing Y coordinates of the points of the bezier curve. </td></tr>
    <tr><td class="paramname">n</td><td>Number of points in the vertex array. Minimum number is 3. </td></tr>
    <tr><td class="paramname">s</td><td>Number of steps for the interpolation. Minimum number is 2. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the bezier curve to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the bezier curve to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the bezier curve to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the bezier curve to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03750">3750</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="af0cabe8d3a5e7cf4c95f436c4b87284d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a5799b0d1e99252b19d9acc77e7a94541">boxColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw box (filled rectangle) with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point (i.e. top right) of the box. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point (i.e. top right) of the box. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point (i.e. bottom left) of the box. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point (i.e. bottom left) of the box. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the box to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00695">695</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a6c26ea8c03d1092f917665a182b91963"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a903bb79c5a03077047ff8820df263bd8">boxRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw box (filled rectangle) with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point (i.e. top right) of the box. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point (i.e. top right) of the box. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point (i.e. bottom left) of the box. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point (i.e. bottom left) of the box. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the box to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the box to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the box to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the box to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00716">716</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a9856e3c1366ebd9749809417786a6ed7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#aaeed3ccb288e032856cff488bdba381d">characterColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw a character of the currently set font. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X (horizontal) coordinate of the upper left corner of the character. </td></tr>
    <tr><td class="paramname">y</td><td>Y (vertical) coordinate of the upper left corner of the character. </td></tr>
    <tr><td class="paramname">c</td><td>The character to draw. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the character to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03588">3588</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="aa2edfd8d352bd6483d219ac3c36254f9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#abff6cc81b9a35e9380e0b02da905714f">characterRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw a character of the currently set font. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The Renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X (horizontal) coordinate of the upper left corner of the character. </td></tr>
    <tr><td class="paramname">y</td><td>Y (vertical) coordinate of the upper left corner of the character. </td></tr>
    <tr><td class="paramname">c</td><td>The character to draw. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the character to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the character to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the character to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the character to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03466">3466</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a52bc17933a4cd0bbf8e8b2bb4d791765"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#af68b52c59d2a7a6b7cc817158941ac54">circleColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw circle with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the circle. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the circle. </td></tr>
    <tr><td class="paramname">rad</td><td>Radius in pixels of the circle. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the circle to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l01120">1120</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a5c31cfec612a817f2efb01a65001961e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a1daab46976bf585477be1cfcef2fe1ad">circleRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw circle with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the circle. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the circle. </td></tr>
    <tr><td class="paramname">rad</td><td>Radius in pixels of the circle. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the circle to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the circle to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the circle to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the circle to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l01140">1140</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a9518a381e2b09c6b4e45109e68ee0b64"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a9ac841634751689ddb1c26babe10f3f6">ellipseColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>ry</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw ellipse with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the ellipse. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the ellipse. </td></tr>
    <tr><td class="paramname">rx</td><td>Horizontal radius in pixels of the ellipse. </td></tr>
    <tr><td class="paramname">ry</td><td>Vertical radius in pixels of the ellipse. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the ellipse to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l01577">1577</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a15eed0329a3aa0642cc0b743262cacb3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a3ed26f8b2a25cb94a6412aa772f533aa">ellipseRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>ry</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw ellipse with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the ellipse. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the ellipse. </td></tr>
    <tr><td class="paramname">rx</td><td>Horizontal radius in pixels of the ellipse. </td></tr>
    <tr><td class="paramname">ry</td><td>Vertical radius in pixels of the ellipse. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the ellipse to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the ellipse to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the ellipse to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the ellipse to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l01598">1598</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="ac517d328d433a563793f3d51ed4e3080"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#ab973fd9868527fb13078c356d4a9c6f7">filledCircleColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw filled circle with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the filled circle. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the filled circle. </td></tr>
    <tr><td class="paramname">rad</td><td>Radius in pixels of the filled circle. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the filled circle to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l01457">1457</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a84a0671e43b049dd1f43ff5b1b031c21"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a666bd764e2fe962656e5829d0aad5ba6">filledCircleRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw filled circle with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the filled circle. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the filled circle. </td></tr>
    <tr><td class="paramname">rad</td><td>Radius in pixels of the filled circle. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the filled circle to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the filled circle to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the filled circle to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the filled circle to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l01477">1477</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a5477c5b33b56937f6129438a5fb99c70"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#aa3119e2dd056874c0ca92ded41fea43c">filledEllipseColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>ry</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw filled ellipse with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the filled ellipse. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the filled ellipse. </td></tr>
    <tr><td class="paramname">rx</td><td>Horizontal radius in pixels of the filled ellipse. </td></tr>
    <tr><td class="paramname">ry</td><td>Vertical radius in pixels of the filled ellipse. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the filled ellipse to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02007">2007</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a40aad9eb1dc3000251712c1e16dacd26"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a5240918c243c3e60dd8ae1cef50dd529">filledEllipseRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>ry</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw filled ellipse with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the filled ellipse. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the filled ellipse. </td></tr>
    <tr><td class="paramname">rx</td><td>Horizontal radius in pixels of the filled ellipse. </td></tr>
    <tr><td class="paramname">ry</td><td>Vertical radius in pixels of the filled ellipse. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the filled ellipse to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the filled ellipse to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the filled ellipse to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the filled ellipse to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02028">2028</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a8b3489682bc4c791228580c0a118f4b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a86f189dabaa2a26115ecb819ad7da8e5">filledPieColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw filled pie with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the filled pie. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the filled pie. </td></tr>
    <tr><td class="paramname">rad</td><td>Radius in pixels of the filled pie. </td></tr>
    <tr><td class="paramname">start</td><td>Starting radius in degrees of the filled pie. </td></tr>
    <tr><td class="paramname">end</td><td>Ending radius in degrees of the filled pie. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the filled pie to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02332">2332</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="aa49fd970108edd50f895b3eed0a5cf59"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#adad0f423ae093b5c3cad51a438954a50">filledPieRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw filled pie with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the filled pie. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the filled pie. </td></tr>
    <tr><td class="paramname">rad</td><td>Radius in pixels of the filled pie. </td></tr>
    <tr><td class="paramname">start</td><td>Starting radius in degrees of the filled pie. </td></tr>
    <tr><td class="paramname">end</td><td>Ending radius in degrees of the filled pie. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the filled pie to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the filled pie to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the filled pie to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the filled pie to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02354">2354</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="ab66d826945d8994d9e17ee2745653cac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a97308e4f19363baee0e5bdecee3265f1">filledPolygonColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw filled polygon with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">vx</td><td>Vertex array containing X coordinates of the points of the filled polygon. </td></tr>
    <tr><td class="paramname">vy</td><td>Vertex array containing Y coordinates of the points of the filled polygon. </td></tr>
    <tr><td class="paramname">n</td><td>Number of points in the vertex array. Minimum number is 3. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the filled polygon to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02999">2999</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a31ee2c3d19bd0e9ca5545b81269575a6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#ab80fe08abcf78a6ce8f037f3fdc15625">filledPolygonRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw filled polygon with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">vx</td><td>Vertex array containing X coordinates of the points of the filled polygon. </td></tr>
    <tr><td class="paramname">vy</td><td>Vertex array containing Y coordinates of the points of the filled polygon. </td></tr>
    <tr><td class="paramname">n</td><td>Number of points in the vertex array. Minimum number is 3. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the filled polygon to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the filled polygon to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the filed polygon to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the filled polygon to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03019">3019</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a2bb1f089ab339cf7e4d873aaa677d7d6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8c.html#a2bb1f089ab339cf7e4d873aaa677d7d6">filledPolygonRGBAMT</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int **&#160;</td>
          <td class="paramname"><em>polyInts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>polyAllocated</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw filled polygon with alpha blending (multi-threaded capable). </p>
<p>Note: The last two parameters are optional; but are required for multithreaded operation.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">vx</td><td>Vertex array containing X coordinates of the points of the filled polygon. </td></tr>
    <tr><td class="paramname">vy</td><td>Vertex array containing Y coordinates of the points of the filled polygon. </td></tr>
    <tr><td class="paramname">n</td><td>Number of points in the vertex array. Minimum number is 3. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the filled polygon to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the filled polygon to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the filled polygon to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the filled polygon to draw. </td></tr>
    <tr><td class="paramname">polyInts</td><td>Preallocated, temporary vertex array used for sorting vertices. Required for multithreaded operation; set to NULL otherwise. </td></tr>
    <tr><td class="paramname">polyAllocated</td><td>Flag indicating if temporary vertex array was allocated. Required for multithreaded operation; set to NULL otherwise.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02831">2831</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a79efc6451b00c91cf50e46a29dcde230"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a57fd7355780a114b9d72b1e9591f955d">filledTrigonColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw filled trigon (triangle) with alpha blending. </p>
<p>Note: Creates vertex array and uses aapolygon routine to render.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the filled trigon. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the filled trigon. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the filled trigon. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point of the filled trigon. </td></tr>
    <tr><td class="paramname">x3</td><td>X coordinate of the third point of the filled trigon. </td></tr>
    <tr><td class="paramname">y3</td><td>Y coordinate of the third point of the filled trigon. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the filled trigon to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02510">2510</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="aa828ac3c3fe5ce610c5ad1516dfb6f3f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a273cf4a88abf6c6a5e019b2c58ee2423">filledTrigonRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw filled trigon (triangle) with alpha blending. </p>
<p>Note: Creates vertex array and uses aapolygon routine to render.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the filled trigon. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the filled trigon. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the filled trigon. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point of the filled trigon. </td></tr>
    <tr><td class="paramname">x3</td><td>X coordinate of the third point of the filled trigon. </td></tr>
    <tr><td class="paramname">y3</td><td>Y coordinate of the third point of the filled trigon. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the filled trigon to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the filled trigon to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the filled trigon to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the filled trigon to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02544">2544</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="afacd57651ec0e0ccab60753636862cd0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_s_d_l2__gfx_primitives_8h.html#adcbe6b74a9e0fef4165bc7bdb73294ec">gfxPrimitivesSetFont</a> </td>
          <td>(</td>
          <td class="paramtype">const void *&#160;</td>
          <td class="paramname"><em>fontdata</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>cw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>ch</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets or resets the current global font data. </p>
<p>The font data array is organized in follows: [fontdata] = [character 0][character 1]...[character 255] where [character n] = [byte 1 row 1][byte 2 row 1]...[byte {pitch} row 1][byte 1 row 2] ...[byte {pitch} row height] where [byte n] = [bit 0]...[bit 7] where [bit n] = [0 for transparent pixel|1 for colored pixel]</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fontdata</td><td>Pointer to array of font data. Set to NULL, to reset global font to the default 8x8 font. </td></tr>
    <tr><td class="paramname">cw</td><td>Width of character in bytes. Ignored if fontdata==NULL. </td></tr>
    <tr><td class="paramname">ch</td><td>Height of character in bytes. Ignored if fontdata==NULL. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03374">3374</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="aef6796a883f07d31bbf7c7df6d1153d2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a2349bb02995a364f6b1069c46a09b7ba">gfxPrimitivesSetFontRotation</a> </td>
          <td>(</td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>rotation</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets current global font character rotation steps. </p>
<p>Default is 0 (no rotation). 1 = 90deg clockwise. 2 = 180deg clockwise. 3 = 270deg clockwise. Changing the rotation, will reset the character cache.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">rotation</td><td>Number of 90deg clockwise steps to rotate </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03420">3420</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="aa73ac854afaeb66d6a33857aec8335f9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8c.html#aa73ac854afaeb66d6a33857aec8335f9">hline</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw horizontal line in currently set color. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point (i.e. left) of the line. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point (i.e. right) of the line. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the points of the line.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00158">158</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a7db92d9e3d357e5a81ae1eee59a6d44a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a0d1977c09c0bcfe77b4e1a792ce1e79a">hlineColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw horizontal line with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point (i.e. left) of the line. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point (i.e. right) of the line. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the points of the line. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the line to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00175">175</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a6a0d6ec83f217988a463f65f7c58cabe"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#ace5a96b77edbccba3170852b093503aa">hlineRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw horizontal line with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point (i.e. left) of the line. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point (i.e. right) of the line. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the points of the line. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the line to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the line to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the line to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the line to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00195">195</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="ac8efb30db084f16211f1f1dd648df618"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8c.html#ac8efb30db084f16211f1f1dd648df618">line</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw line with alpha blending using the currently set color. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the line. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the line. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the line. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point of the line.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00786">786</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="aa84df90d36a8cb5a5afa61c50ffbfb71"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a84f917eb19ea41b586f1afa9eb4b552c">lineColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw line with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the line. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the line. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the line. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the seond point of the line. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the line to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00806">806</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a82d13b4ab3057ebebb7706e451090712"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#ab56ec3fb82b59f2ab1d1877b6adb3b82">lineRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw line with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the line. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the line. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the line. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point of the line. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the line to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the line to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the line to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the line to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00827">827</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a25ffe0578a32b143364d7d9513c3e2a7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a9f9070739e72ea242fd48239a4ff48e4">pieColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw pie (outline) with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the pie. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the pie. </td></tr>
    <tr><td class="paramname">rad</td><td>Radius in pixels of the pie. </td></tr>
    <tr><td class="paramname">start</td><td>Starting radius in degrees of the pie. </td></tr>
    <tr><td class="paramname">end</td><td>Ending radius in degrees of the pie. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the pie to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02290">2290</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="ab5dd5024c52d632bbbd2bdfc801cb81c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a3b8baf3eecea4738ac2a1c28af4bfb41">pieRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>end</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw pie (outline) with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the center of the pie. </td></tr>
    <tr><td class="paramname">y</td><td>Y coordinate of the center of the pie. </td></tr>
    <tr><td class="paramname">rad</td><td>Radius in pixels of the pie. </td></tr>
    <tr><td class="paramname">start</td><td>Starting radius in degrees of the pie. </td></tr>
    <tr><td class="paramname">end</td><td>Ending radius in degrees of the pie. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the pie to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the pie to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the pie to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the pie to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02313">2313</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a3ec9c334d5e0786dd27924d210b41bb8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8c.html#a3ec9c334d5e0786dd27924d210b41bb8">pixel</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw pixel in currently set color. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X (horizontal) coordinate of the pixel. </td></tr>
    <tr><td class="paramname">y</td><td>Y (vertical) coordinate of the pixel.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00073">73</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a345d35905f5aaac6029ddc3c8f016402"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a2bdb83ac58c2e091ef26f720bdeb66bd">pixelColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw pixel with blending enabled if a&lt;255. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X (horizontal) coordinate of the pixel. </td></tr>
    <tr><td class="paramname">y</td><td>Y (vertical) coordinate of the pixel. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the pixel to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00088">88</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="ae67cd64db328392941f96c187edafdf3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a6f4a05ba92bf39420280ee8ccf961e77">pixelRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw pixel with blending enabled if a&lt;255. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X (horizontal) coordinate of the pixel. </td></tr>
    <tr><td class="paramname">y</td><td>Y (vertical) coordinate of the pixel. </td></tr>
    <tr><td class="paramname">r</td><td>The red color value of the pixel to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green color value of the pixel to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue color value of the pixel to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the pixel to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00107">107</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a1f205b54bc806e64c475941e8e7f3cbf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8c.html#a1f205b54bc806e64c475941e8e7f3cbf">pixelRGBAWeight</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>weight</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw pixel with blending enabled and using alpha weight on color. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>The horizontal coordinate of the pixel. </td></tr>
    <tr><td class="paramname">y</td><td>The vertical position of the pixel. </td></tr>
    <tr><td class="paramname">r</td><td>The red color value of the pixel to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green color value of the pixel to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue color value of the pixel to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the pixel to draw. </td></tr>
    <tr><td class="paramname">weight</td><td>The weight multiplied into the alpha value of the pixel.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00130">130</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a635ed8b4c7321f75d00938130edf2007"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8c.html#a635ed8b4c7321f75d00938130edf2007">polygon</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw polygon with the currently set color and blend mode. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">vx</td><td>Vertex array containing X coordinates of the points of the polygon. </td></tr>
    <tr><td class="paramname">vy</td><td>Vertex array containing Y coordinates of the points of the polygon. </td></tr>
    <tr><td class="paramname">n</td><td>Number of points in the vertex array. Minimum number is 3.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02589">2589</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a736477a8ea3068bcc3d8d9af4e07420e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a3577e5aee374d5176a3587343e11c4aa">polygonColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw polygon with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">vx</td><td>Vertex array containing X coordinates of the points of the polygon. </td></tr>
    <tr><td class="paramname">vy</td><td>Vertex array containing Y coordinates of the points of the polygon. </td></tr>
    <tr><td class="paramname">n</td><td>Number of points in the vertex array. Minimum number is 3. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the polygon to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02573">2573</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="acf4c333418f95d250528c4106b6ead63"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a69baa68215840bb54ddd0281e6ad63a0">polygonRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw polygon with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">vx</td><td>Vertex array containing X coordinates of the points of the polygon. </td></tr>
    <tr><td class="paramname">vy</td><td>Vertex array containing Y coordinates of the points of the polygon. </td></tr>
    <tr><td class="paramname">n</td><td>Number of points in the vertex array. Minimum number is 3. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the polygon to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the polygon to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the polygon to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the polygon to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02655">2655</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a746d7d6cbec9dbe69d27ec9087e7bf92"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a53b996645c0acdf5cb74c969503e791e">rectangleColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw rectangle with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point (i.e. top right) of the rectangle. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point (i.e. top right) of the rectangle. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point (i.e. bottom left) of the rectangle. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point (i.e. bottom left) of the rectangle. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the rectangle to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00260">260</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a22bb0fffd73e6afbe899db10b13a40cf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#aa926924c3650d10d6a20cd7e4036a9a4">rectangleRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw rectangle with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point (i.e. top right) of the rectangle. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point (i.e. top right) of the rectangle. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point (i.e. bottom left) of the rectangle. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point (i.e. bottom left) of the rectangle. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the rectangle to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the rectangle to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the rectangle to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the rectangle to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00281">281</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a054bef5fbc340a7bc6a19396e02af7f5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a13ffcecd9c186d2522ae1e66bdedf8d7">roundedBoxColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw rounded-corner box (filled rectangle) with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point (i.e. top right) of the box. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point (i.e. top right) of the box. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point (i.e. bottom left) of the box. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point (i.e. bottom left) of the box. </td></tr>
    <tr><td class="paramname">rad</td><td>The radius of the corner arcs of the box. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the box to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00498">498</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="aa0dcfdfa750ba9fe6b0c207f451d5a68"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a3db064ca0f03a2c46852661494ff7a65">roundedBoxRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw rounded-corner box (filled rectangle) with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point (i.e. top right) of the box. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point (i.e. top right) of the box. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point (i.e. bottom left) of the box. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point (i.e. bottom left) of the box. </td></tr>
    <tr><td class="paramname">rad</td><td>The radius of the corner arcs of the box. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the box to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the box to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the box to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the box to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00520">520</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="aa959f94f887900f4554a0cdff23dad38"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a314698defb7da3f3415ddc5468315d83">roundedRectangleColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw rounded-corner rectangle with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point (i.e. top right) of the rectangle. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point (i.e. top right) of the rectangle. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point (i.e. bottom left) of the rectangle. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point (i.e. bottom left) of the rectangle. </td></tr>
    <tr><td class="paramname">rad</td><td>The radius of the corner arc. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the rectangle to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00353">353</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a97474c00a6b7b26353b7875e6c70e802"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a2b54ba16d7e7243fb1921a286156cad9">roundedRectangleRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>rad</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw rounded-corner rectangle with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point (i.e. top right) of the rectangle. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point (i.e. top right) of the rectangle. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point (i.e. bottom left) of the rectangle. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point (i.e. bottom left) of the rectangle. </td></tr>
    <tr><td class="paramname">rad</td><td>The radius of the corner arc. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the rectangle to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the rectangle to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the rectangle to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the rectangle to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00375">375</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a123f0b72cbdc48e4d47c2942043819a9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a329e9c81b07e5af08d73e3b3d6078bf0">stringColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw a string in the currently set font. </p>
<p>The spacing between consequtive characters in the string is the fixed number of pixels of the character width of the current global font.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X (horizontal) coordinate of the upper left corner of the string. </td></tr>
    <tr><td class="paramname">y</td><td>Y (vertical) coordinate of the upper left corner of the string. </td></tr>
    <tr><td class="paramname">s</td><td>The string to draw. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the string to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03609">3609</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a22b256fbc6a186b98ec6674c1d781c2f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a744afe14139c1c553204a47cc284e478">stringRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw a string in the currently set font. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X (horizontal) coordinate of the upper left corner of the string. </td></tr>
    <tr><td class="paramname">y</td><td>Y (vertical) coordinate of the upper left corner of the string. </td></tr>
    <tr><td class="paramname">s</td><td>The string to draw. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the string to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the string to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the string to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the string to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03629">3629</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a2ca947a90a81d4a2b778a7489edbedee"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a3b4c81592098da506f534d4a81b266f2">texturedPolygon</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SDL_Surface *&#160;</td>
          <td class="paramname"><em>texture</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>texture_dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>texture_dy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a polygon filled with the given texture. </p>
<p>This standard version is calling multithreaded versions with NULL cache parameters.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">vx</td><td>array of x vector components </td></tr>
    <tr><td class="paramname">vy</td><td>array of x vector components </td></tr>
    <tr><td class="paramname">n</td><td>the amount of vectors in the vx and vy array </td></tr>
    <tr><td class="paramname">texture</td><td>the sdl surface to use to fill the polygon </td></tr>
    <tr><td class="paramname">texture_dx</td><td>the offset of the texture relative to the screeen. if you move the polygon 10 pixels to the left and want the texture to apear the same you need to increase the texture_dx value </td></tr>
    <tr><td class="paramname">texture_dy</td><td>see texture_dx</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03306">3306</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="aa28c0ceafacfeaede97d8ba5597ffe6e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8c.html#aa28c0ceafacfeaede97d8ba5597ffe6e">texturedPolygonMT</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Sint16 *&#160;</td>
          <td class="paramname"><em>vy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>n</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SDL_Surface *&#160;</td>
          <td class="paramname"><em>texture</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>texture_dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>texture_dy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int **&#160;</td>
          <td class="paramname"><em>polyInts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>polyAllocated</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a polygon filled with the given texture (Multi-Threading Capable). </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">vx</td><td>array of x vector components </td></tr>
    <tr><td class="paramname">vy</td><td>array of x vector components </td></tr>
    <tr><td class="paramname">n</td><td>the amount of vectors in the vx and vy array </td></tr>
    <tr><td class="paramname">texture</td><td>the sdl surface to use to fill the polygon </td></tr>
    <tr><td class="paramname">texture_dx</td><td>the offset of the texture relative to the screeen. If you move the polygon 10 pixels to the left and want the texture to apear the same you need to increase the texture_dx value </td></tr>
    <tr><td class="paramname">texture_dy</td><td>see texture_dx </td></tr>
    <tr><td class="paramname">polyInts</td><td>Preallocated temp array storage for vertex sorting (used for multi-threaded operation) </td></tr>
    <tr><td class="paramname">polyAllocated</td><td>Flag indicating oif the temp array was allocated (used for multi-threaded operation)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l03140">3140</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a65c3119156482e660d4f4a3e084eb2ab"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a613c16293c3571b695cc0c60358bb862">thickLineColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw a thick line with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the line. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the line. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the line. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point of the line. </td></tr>
    <tr><td class="paramname">width</td><td>Width of the line in pixels. Must be &gt;0. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the line to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l04301">4301</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a20297b17afd1e3686589bf74ebd17482"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a247136a562abec2649718d38f5819b44">thickLineRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw a thick line with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the line. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the line. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the line. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point of the line. </td></tr>
    <tr><td class="paramname">width</td><td>Width of the line in pixels. Must be &gt;0. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the character to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the character to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the character to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the character to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l04323">4323</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="ab6ebeb4e37c2709cd413a308da5bea45"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#af4fc0fdb33e57047d9347d3fe7b1bdbd">trigonColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw trigon (triangle outline) with alpha blending. </p>
<p>Note: Creates vertex array and uses polygon routine to render.</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the trigon. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the trigon. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the trigon. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point of the trigon. </td></tr>
    <tr><td class="paramname">x3</td><td>X coordinate of the third point of the trigon. </td></tr>
    <tr><td class="paramname">y3</td><td>Y coordinate of the third point of the trigon. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the trigon to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02378">2378</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="aea579ce05e8306113dc7734a542886c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a152662f6985587d137837086aaa95311">trigonRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw trigon (triangle outline) with alpha blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x1</td><td>X coordinate of the first point of the trigon. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point of the trigon. </td></tr>
    <tr><td class="paramname">x2</td><td>X coordinate of the second point of the trigon. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point of the trigon. </td></tr>
    <tr><td class="paramname">x3</td><td>X coordinate of the third point of the trigon. </td></tr>
    <tr><td class="paramname">y3</td><td>Y coordinate of the third point of the trigon. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the trigon to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the trigon to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the trigon to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the trigon to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l02410">2410</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a743ef67a072a56f575e555feaf1eeb58"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#af8cf6591ddc81242369e50cb3e159dfe">vlineColor</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint32&#160;</td>
          <td class="paramname"><em>color</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw vertical line with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the points of the line. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point (i.e. top) of the line. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point (i.e. bottom) of the line. </td></tr>
    <tr><td class="paramname">color</td><td>The color value of the line to draw (0xRRGGBBAA).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00217">217</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
<a class="anchor" id="a7a8eff7484a2b663bde190caa02acd27"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_s_d_l2__gfx_primitives_8h.html#a60d71d2bc6e450d8063256ebc37f21f5">vlineRGBA</a> </td>
          <td>(</td>
          <td class="paramtype">SDL_Renderer *&#160;</td>
          <td class="paramname"><em>renderer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Sint16&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>g</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Uint8&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draw vertical line with blending. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">renderer</td><td>The renderer to draw on. </td></tr>
    <tr><td class="paramname">x</td><td>X coordinate of the points of the line. </td></tr>
    <tr><td class="paramname">y1</td><td>Y coordinate of the first point (i.e. top) of the line. </td></tr>
    <tr><td class="paramname">y2</td><td>Y coordinate of the second point (i.e. bottom) of the line. </td></tr>
    <tr><td class="paramname">r</td><td>The red value of the line to draw. </td></tr>
    <tr><td class="paramname">g</td><td>The green value of the line to draw. </td></tr>
    <tr><td class="paramname">b</td><td>The blue value of the line to draw. </td></tr>
    <tr><td class="paramname">a</td><td>The alpha value of the line to draw.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Returns 0 on success, -1 on failure. </dd></dl>

<p>Definition at line <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html#l00237">237</a> of file <a class="el" href="_s_d_l2__gfx_primitives_8c_source.html">SDL2_gfxPrimitives.c</a>.</p>

</div>
</div>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
